Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 6 - Audio Components / Audio Components Reference
Audio Component-Defined Routines / Resetting Audio Components


AudioSetToDefaults

The Sound Manager might call your AudioSetToDefaults function to reset an audio port.

pascal ComponentResult AudioSetToDefaults (ComponentInstance ac);
ac
A component instance that identifies your audio component.
DESCRIPTION
Your AudioSetToDefaults function should reset its volume and mute levels to some reasonable default value. It should also reset to reasonable values any other settings it might be maintaining privately.

RESULT CODES
Your AudioSetToDefaults function should return noErr if successful or an appropriate result code otherwise.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996